package com.ruoyi.collect.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Objects;

/**
 * 收藏对象 tb_collect
 * 
 * @author 劳雅玲
 * @date 2024-03-26
 */
public class TbCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 帖子id */
    @Excel(name = "帖子id")
    private Long postId;
    /** 帖子标题 */
    @Excel(name = "帖子标题")
    private String title;
    /** 帖子标题 */
    @Excel(name = "帖子内容")
    private String content;
    /** 帖子标题 */
    @Excel(name = "帖子图片")
    private String imgUrl;
    /** 帖子标题 */
    @Excel(name = "帖子视频")
    private String videoUrl;
    /** 帖子标题 */
    @Excel(name = "发帖人名称")
    private String userName;
    @Excel(name = "发帖人昵称")
    private String nickName;
    @Excel(name = "发帖人头像")
    private String avatar;

    /**
     * 收藏状态
     */
    private Integer isCollect;

    public Integer getIsCollect() {
        return isCollect;
    }

    public void setIsCollect(Integer isCollect) {
        this.isCollect = isCollect;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickNname) {
        this.nickName = nickNname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbCollect tbCollect = (TbCollect) o;
        return Objects.equals(id, tbCollect.id) && Objects.equals(userId, tbCollect.userId) && Objects.equals(postId, tbCollect.postId) && Objects.equals(title, tbCollect.title) && Objects.equals(content, tbCollect.content) && Objects.equals(imgUrl, tbCollect.imgUrl) && Objects.equals(videoUrl, tbCollect.videoUrl) && Objects.equals(userName, tbCollect.userName) && Objects.equals(nickName, tbCollect.nickName) && Objects.equals(avatar, tbCollect.avatar) && Objects.equals(isCollect, tbCollect.isCollect);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, userId, postId, title, content, imgUrl, videoUrl, userName, nickName, avatar, isCollect);
    }
}
